﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using QLPKWeb.Models.LinQ.Common;

namespace QLPKWeb.Models.FormBean.Base
{
    public class CommonForm
    {
        /// <summary>
        /// các hàm xử lý
        /// </summary>


        public IList<TB_User> GetUserByDepartment(IList<TB_User> users, int departmentId)
        {
            IList<TB_User> userList = new List<TB_User>();

            foreach (var user in users)
            {
                if (user.Department == departmentId)
                    userList.Add(user);
            }

            return userList;
        }
    }
}